Skip to content

T004: Fix pretrust — write trust directly to ~/.claude.json#17

Merged
grobomo merged 1 commit intomainfrom
015-T003-fix-pretrust-v2
Apr 6, 2026
Merged

T004: Fix pretrust — write trust directly to ~/.claude.json#17
grobomo merged 1 commit intomainfrom
015-T003-fix-pretrust-v2

Conversation

@grobomo
Copy link
Copy Markdown
Owner

@grobomo grobomo commented Apr 6, 2026

Summary

  • Neither mkdir nor claude -p establishes interactive workspace trust
  • Trust state is stored in ~/.claude.json under projects[path].hasTrustDialogAccepted
  • Now writes this flag directly — instant, no subprocess, no API call
  • 68 tests passing

Test plan

  • Unit tests pass (68/68)
  • Live test: context-reset into pretrust-test (never-before-opened project)

Neither mkdir nor claude -p establishes interactive trust. The actual
trust state lives in ~/.claude.json under projects[path].hasTrustDialogAccepted.
Now writes this flag directly — instant, no subprocess, no API call.

68 tests passing.
@grobomo grobomo merged commit 93e746c into main Apr 6, 2026
1 check passed
@grobomo grobomo deleted the 015-T003-fix-pretrust-v2 branch April 6, 2026 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant